package demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Home-pc
 * Date: 2023-08-16
 * Time: 14:47
 */
public interface IShape {
    void draw4();

}
abstract class Cycle implements IShape{

}
class Rect implements IShape{
    @Override
    public void draw4() {
        System.out.println("画矩形");
    }
}
class Test {
    public static void drawMap(IShape iShape){
        iShape.draw4();
    }
    public static void main(String[] args) {
/*        IShape iShape=new Cycle();
        IShape iShape1=new Rect();
        drawMap(iShape);
        drawMap(iShape1);*/
    }
}
